#ifndef RESETPASSWORDDIALOG_H
#define RESETPASSWORDDIALOG_H

#include <QDialog>
#include <QTimer>
#include <QPushButton>
#include "slidingverificationdialog.h"

namespace Ui {
class ResetPasswordDialog;
}

class ResetPasswordDialog : public QDialog
{
    Q_OBJECT

public:
    explicit ResetPasswordDialog(QWidget *parent = nullptr);
    ~ResetPasswordDialog();
private slots:
    void slot_checkbox_state_changed(int state);
    void slot_checkbox_clicked();

    void slot_permit();//自定义槽，当用户等待30s后触发，允许用户再次进入验证码界面
private:
    Ui::ResetPasswordDialog *ui;
    SlidingVerificationDialog * _veri_dlg;//验证码对话框
    QPushButton *verificatioon_code;//验证码按钮
    int open_slidver_count=0;//打开验证码的次数
    QTimer *timer;
    int num_time=30;//等待时间，30s
};

#endif // RESETPASSWORDDIALOG_H
